import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
//引入element-plus插件与样式,及国际化
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//Element Plus 提供了全局配置国际化的配置(默认英文)
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败); mjs没有ts类型
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//引入模板的全局样式，清除默认样式
import './styles/index.scss'
//阿里图标
// svg图标
import 'virtual:svg-icons-register'
// 引入全局样式
// import '@/assets/css/common.scss'

import '@/assets/iconfont/iconfont.css'
import pinia from '@/store/index.js'
const app = createApp(App)
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(pinia)
app.mount('#app')
